package com.peanut.boot.service.student.Imp;

import com.peanut.boot.entiity.Student;
import com.peanut.boot.mapper.stuendet.StudentMapper;
import com.peanut.boot.service.student.IStudentService;
import com.peanut.boot.util.RedisCrudUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.concurrent.TimeUnit;

/**
 * @className: com.peanut.boot.service.student.student.Imp-> StudentServiceImp
 * @description: 这个类是做做什么得吖，小朋友？
 * @author: chenhs
 * @createDate: 2021-12-01 21:47
 * @version: 1.0
 */
@Service(value = "studentService")
@Slf4j
public class StudentServiceImpl implements IStudentService {
    @Override
    public List<Student> getNoteStudentList(Long id) {
        return studentMapper.getNoteStudentlist(id);
    }

    @Resource
    StudentMapper studentMapper;

    @Resource
    private RedisCrudUtil redisCrudUtil; // 注入 RedisCrudUtil 实例

    @Override
    public List<Student> getStudentList(Long id) {
        return studentMapper.getStudentList(id);
    }
}
